package com.zzh.partnersys.common.exception;

import lombok.Getter;

/**
 * @author �?�?�?
 * @version 1.0
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    SERVICE_ERROR(2012,"服务异常"),
    DATA_ERROR(204,"数据异常"),
    ILLEGAL_REQUEST(205,"非法请求"),
    REPEAT_SUBMIT(206,"重复提交"),
    LOGIN_AUTH(208,"未登录"),
    FORM_DATA_ERROR(40001,"表单数据参数异常"),
    EXIST_USER(40002,"账户已存在"),
    SYSTEM_ERROR(40003,"系统出错"),
    PARAMS_ERROR(40004,"参数异常"),
    NO_AUTH(40005,"无权限"),
    CREDIT_SCORE_ERROR(40006,"信用分必须在0-10之间"),
    CREDIT_SCORE_FORMAT_ERROR(40007,"信用分格式不正确"),
    USER_TYPE_INVALID(40008,"用户类型无效"),
    USER_TYPE_FORMAT_ERROR(40009,"用户类型格式不正确"),
    MEMBER_LEVEL_INVALID(40010,"会员等级无效"),
    MEMBER_LEVEL_FORMAT_ERROR(40011,"会员等级格式不正确"),
    TASK_NOT_FOUND(40012,"任务不存在"),
    DOCUMENT_NOT_FOUND(40013,"文档不存在"),
    DOCUMENT_PERMISSION_DENIED(40014,"文档权限不足"),
    TOO_MANY_REQUESTS(40012, "请求过于频繁"),
    ASSISTANT_NOT_FOUND(40015,"助手不存在，请先创建助手"),
    DOCUMENT_EDIT_LOCKED(40016,"文档正在被编辑，请稍后再试");

    private Integer code;
    private String message;
    private ResultCodeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
